package com.etc;

import com.etc.services.AService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestMain1 {
    public static void main(String[] args) {

        // 容器实例化
        ApplicationContext context = new ClassPathXmlApplicationContext("springContext1.xml");

        Student stu = context.getBean(Student.class);
        System.out.println(stu.getName() + "@" + stu.getAge());
        stu.weishi();

    }
}
